import { Component, OnInit, ViewChild } from '@angular/core';

@Component({
  selector: 'app-transition',
  templateUrl: './transition.component.html',
  styleUrls: ['./transition.component.scss']
})
export class TransitionComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {
  }

  @ViewChild('aside') aside:any;

  showAside() {
    // console.log(this.aside);
    this.aside.nativeElement.style.transform="translate(0px,0px)";
  }
  hideAside() {
    // console.log(this.aside);
    this.aside.nativeElement.style.transform="translate(100%,0px)";
  }
  
}
